<%--
  Created by IntelliJ IDEA.
  User: 19000
  Date: 2022/8/18
  Time: 15:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/admin.css">
    <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
</head>

<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="${pageContext.request.contextPath}/images/y.jpg" class="radius-circle rotate-hover" height="50" alt=""/>后台管理中心</h1>
    </div>
    <div class="head-l">
        <a class="button button-little bg-green" href="#" target="_self"><span class="icon-home"></span>前台首页</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a class="button button-little bg-red" href="${pageContext.request.contextPath}/login.jsp">
            <span class="icon-power-off"></span> 退出登录</a>&nbsp;&nbsp;&nbsp;&nbsp;
        <a class="button button-little bg-green" href="#" target="_self"><span class="icon-home"></span>欢迎您，${user.name}</a>
    </div>
</div>
<div class="leftnav">

    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>



    <h2><span class="icon-user"></span>用户设置</h2>
    <ul style="display:block">
        <li><a href="${pageContext.request.contextPath}/user/page" target="right"><span class="icon-caret-right"></span>用户管理</a></li>
<%--        <li><a href="#" target="right"><span class="icon-caret-right"></span>用户相关操作</a></li>--%>
    </ul>



    <h2><span class="icon-user"></span>商品栏目</h2>
    <ul style="display:block">
        <li><a href="${pageContext.request.contextPath}/product/page?pageNum=1" target="right"><span class="icon-caret-right"></span>商品管理</a></li>
        <li><a href="${pageContext.request.contextPath}/product/turnToAddProductPage" target="right"><span class="icon-caret-right"></span>添加商品</a></li>
        <li><a href="${pageContext.request.contextPath}/shopping/buyProductPage?userId=${user.id}" target="right"><span class="icon-caret-right"></span>购买商品</a></li>
        <li><a href="${pageContext.request.contextPath}/shopping/shoppingCart?userId=${user.id}" target="right"><span class="icon-caret-right"></span>购物车</a></li>
    </ul>




<%--    员工管理模块--%>
    <h2><span class="icon-user"></span>员工管理</h2>
    <ul style="display:block">
        <li><a href="${pageContext.request.contextPath}/employee/employeePage?pageName=1" target="right"><span class="icon-caret-right"></span>员工信息管理</a></li>
        <li><a href="${pageContext.request.contextPath}/employee/addEmployeePage" target="right"> <span class="icon-caret-right"></span>添加员工信息</a></li>
        <li><a href="${pageContext.request.contextPath}/employee/findEmployeeJob" target="right"> <span class="icon-caret-right"></span>员工职位管理</a></li>

    </ul>

<%--    订单模块--%>
    <h2><span class="icon-pencil-square-o"></span>订单管理</h2>
    <ul>
        <li><a href="${pageContext.request.contextPath}/order/queryAllOrder" target="right"><span class="icon-caret-right"></span>所有订单</a></li>
        <li><a href="${pageContext.request.contextPath}/order/queryStatusOrder?status=1" target="right"><span class="icon-caret-right"></span>未结算订单</a></li>
        <li><a href="${pageContext.request.contextPath}/order/queryStatusOrder?status=0" target="right"><span class="icon-caret-right"></span>已结算订单</a></li>
        <li><a href="${pageContext.request.contextPath}/order/addNewOrder" target="right"><span class="icon-caret-right"></span>添加新订单</a></li>
    </ul>


    <h2><span class="icon-pencil-square-o"></span>栏目管理</h2>
    <ul>
        <li><a href="list.html" target="right"><span class="icon-caret-right"></span>内容管理</a></li>
        <li><a href="add.html" target="right"><span class="icon-caret-right"></span>添加内容</a></li>
        <li><a href="cate.html" target="right"><span class="icon-caret-right"></span>分类管理</a></li>
    </ul>

</div>
<script type="text/javascript">
    $(function () {
        $(".leftnav h2").click(function () {
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        })
        $(".leftnav ul li a").click(function () {
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });
</script>
<ul class="bread">
    <li><a href="${pageContext.request.contextPath}/welcome.jsp" target="right" class="icon-home"> 首页</a></li>
    <li><b>当前语言：</b><span style="color:red;">中文</span>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a href="##">英文</a></li>
</ul>
<div class="admin">
    <iframe scrolling="auto" rameborder="0" src="${pageContext.request.contextPath}/welcome.jsp" name="right" width="100%" height="100%"></iframe>
</div>
<div style="text-align:center;">
    <p>来源:<a href="http://www.mycodes.net/" target="_blank">源码之家</a></p>
</div>
</body>
</html>
